<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::IRender类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_i_render.html">IRender</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_i_render-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::IRender类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>渲染接口  
 <a href="class_sky_engine2d_1_1_i_render.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_i_render_8h_source.html">IRender.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a448aa32aadb79f25d9ac962f256f6acc"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a448aa32aadb79f25d9ac962f256f6acc">renderBegin</a> ()=0</td></tr>
<tr class="memdesc:a448aa32aadb79f25d9ac962f256f6acc"><td class="mdescLeft">&#160;</td><td class="mdescRight">开始渲染  <a href="#a448aa32aadb79f25d9ac962f256f6acc">更多...</a><br /></td></tr>
<tr class="separator:a448aa32aadb79f25d9ac962f256f6acc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b3dd7cc95c8612468b67e2659aad82c"><td class="memItemLeft" align="right" valign="top">virtual HRESULT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a0b3dd7cc95c8612468b67e2659aad82c">renderEnd</a> ()=0</td></tr>
<tr class="memdesc:a0b3dd7cc95c8612468b67e2659aad82c"><td class="mdescLeft">&#160;</td><td class="mdescRight">结束渲染  <a href="#a0b3dd7cc95c8612468b67e2659aad82c">更多...</a><br /></td></tr>
<tr class="separator:a0b3dd7cc95c8612468b67e2659aad82c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cad73ae2d9fc189a9a87e4aff40dd36"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a8cad73ae2d9fc189a9a87e4aff40dd36">render</a> ()=0</td></tr>
<tr class="memdesc:a8cad73ae2d9fc189a9a87e4aff40dd36"><td class="mdescLeft">&#160;</td><td class="mdescRight">渲染  <a href="#a8cad73ae2d9fc189a9a87e4aff40dd36">更多...</a><br /></td></tr>
<tr class="separator:a8cad73ae2d9fc189a9a87e4aff40dd36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81549c883f4f7b11e2666efc7359fc4b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a81549c883f4f7b11e2666efc7359fc4b">setClearColor</a> (const <a class="el" href="class_sky_engine2d_1_1_color.html">Color</a> &amp;clear_color)=0</td></tr>
<tr class="memdesc:a81549c883f4f7b11e2666efc7359fc4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置清除目标时的颜色  <a href="#a81549c883f4f7b11e2666efc7359fc4b">更多...</a><br /></td></tr>
<tr class="separator:a81549c883f4f7b11e2666efc7359fc4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62cb8bc8958d370277715b08a0aee3bc"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a62cb8bc8958d370277715b08a0aee3bc">isInit</a> () const =0</td></tr>
<tr class="memdesc:a62cb8bc8958d370277715b08a0aee3bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否初始化  <a href="#a62cb8bc8958d370277715b08a0aee3bc">更多...</a><br /></td></tr>
<tr class="separator:a62cb8bc8958d370277715b08a0aee3bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff991fbdd144dd0b50c2625e291598ce"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#aff991fbdd144dd0b50c2625e291598ce">getDrawCallCount</a> ()=0</td></tr>
<tr class="memdesc:aff991fbdd144dd0b50c2625e291598ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧的DrawCall 次数  <a href="#aff991fbdd144dd0b50c2625e291598ce">更多...</a><br /></td></tr>
<tr class="separator:aff991fbdd144dd0b50c2625e291598ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa35f512478d9b363f29cbb71ab4ad3f"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#afa35f512478d9b363f29cbb71ab4ad3f">getDrawCmdCount</a> ()=0</td></tr>
<tr class="memdesc:afa35f512478d9b363f29cbb71ab4ad3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧的绘制命令总数  <a href="#afa35f512478d9b363f29cbb71ab4ad3f">更多...</a><br /></td></tr>
<tr class="separator:afa35f512478d9b363f29cbb71ab4ad3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33f2959a1c486554d90386e01711a6ce"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a33f2959a1c486554d90386e01711a6ce">getVertexCount</a> ()=0</td></tr>
<tr class="memdesc:a33f2959a1c486554d90386e01711a6ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧绘制的顶点总数  <a href="#a33f2959a1c486554d90386e01711a6ce">更多...</a><br /></td></tr>
<tr class="separator:a33f2959a1c486554d90386e01711a6ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68d7983ccd9e7919f146a397090e3ac6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a68d7983ccd9e7919f146a397090e3ac6">addRenderCommand</a> (<a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommand</a> *cmd)=0</td></tr>
<tr class="memdesc:a68d7983ccd9e7919f146a397090e3ac6"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加渲染命令  <a href="#a68d7983ccd9e7919f146a397090e3ac6">更多...</a><br /></td></tr>
<tr class="separator:a68d7983ccd9e7919f146a397090e3ac6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a7381f687edce45a2bcfd9631055543"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_render.html#a4a7381f687edce45a2bcfd9631055543">getDirectRender</a> ()=0</td></tr>
<tr class="memdesc:a4a7381f687edce45a2bcfd9631055543"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取 direct 接口  <a href="#a4a7381f687edce45a2bcfd9631055543">更多...</a><br /></td></tr>
<tr class="separator:a4a7381f687edce45a2bcfd9631055543"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>渲染接口 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a68d7983ccd9e7919f146a397090e3ac6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68d7983ccd9e7919f146a397090e3ac6">&#9670;&nbsp;</a></span>addRenderCommand()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IRender::addRenderCommand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommand</a> *&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>添加渲染命令 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RenderCommand*</td><td>cmd 绘制命令 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a4a7381f687edce45a2bcfd9631055543"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a7381f687edce45a2bcfd9631055543">&#9670;&nbsp;</a></span>getDirectRender()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a>* SkyEngine2d::IRender::getDirectRender </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取 direct 接口 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html" title="Direct11 绘制相关的接口">SkyEngine2d::IDirectRender</a>* </dd></dl>

</div>
</div>
<a id="aff991fbdd144dd0b50c2625e291598ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff991fbdd144dd0b50c2625e291598ce">&#9670;&nbsp;</a></span>getDrawCallCount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SkyEngine2d::IRender::getDrawCallCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前帧的DrawCall 次数 </p>
<pre class="fragment">DrawCall 是指 在当前帧中 调用 DrawIndexed 次数
</pre><dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="afa35f512478d9b363f29cbb71ab4ad3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa35f512478d9b363f29cbb71ab4ad3f">&#9670;&nbsp;</a></span>getDrawCmdCount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SkyEngine2d::IRender::getDrawCmdCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前帧的绘制命令总数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a33f2959a1c486554d90386e01711a6ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33f2959a1c486554d90386e01711a6ce">&#9670;&nbsp;</a></span>getVertexCount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SkyEngine2d::IRender::getVertexCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前帧绘制的顶点总数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a62cb8bc8958d370277715b08a0aee3bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62cb8bc8958d370277715b08a0aee3bc">&#9670;&nbsp;</a></span>isInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool SkyEngine2d::IRender::isInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>是否初始化 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a8cad73ae2d9fc189a9a87e4aff40dd36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cad73ae2d9fc189a9a87e4aff40dd36">&#9670;&nbsp;</a></span>render()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IRender::render </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>渲染 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a448aa32aadb79f25d9ac962f256f6acc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a448aa32aadb79f25d9ac962f256f6acc">&#9670;&nbsp;</a></span>renderBegin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IRender::renderBegin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>开始渲染 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a0b3dd7cc95c8612468b67e2659aad82c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b3dd7cc95c8612468b67e2659aad82c">&#9670;&nbsp;</a></span>renderEnd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual HRESULT SkyEngine2d::IRender::renderEnd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>结束渲染 </p>
<dl class="section return"><dt>返回</dt><dd>HRESULT </dd></dl>

</div>
</div>
<a id="a81549c883f4f7b11e2666efc7359fc4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81549c883f4f7b11e2666efc7359fc4b">&#9670;&nbsp;</a></span>setClearColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IRender::setClearColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_color.html">Color</a> &amp;&#160;</td>
          <td class="paramname"><em>clear_color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置清除目标时的颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_color.html" title="颜色 r,g,b,a">Color</a> &amp; clear_color 颜色值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/render/<a class="el" href="_i_render_8h_source.html">IRender.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
